﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace linkouqs.Gamekit
{
    public class ToolTip :MonoBehaviour
    {
   
        private Text contentText;

        private void Start()
        {
            
            contentText = transform.Find("ContentText").GetComponent<Text>();

        }

        public void Show(string text)
        {
    
            contentText.text = text;

        }

        public void Hide()
        {
            contentText.text = "";
        }

      
    }
}
